from rest_framework import serializers

from apps.food.models import Foods


class UserPublishSerializer(serializers.ModelSerializer):

    class Meta:
        model = Foods
        fields = ('id', "name", "title", "default_image", "viewCount", "collect")
